#include <stdio.h>
#include <stdlib.h>

#include "FtpServer.h"
/*#include "FtpServerFunctions.h"*/

int main(int argc, char** argv)
{
    /*char* usrArr[] = {"dana", "sasi", "nimi","yosi"};
    char* pssArr[] = {"anad", "isas", "imin","isoy"};*/
    FtpServer* server = 0;

    if(argc < 3)
    {
        puts("Usage: FtpServer <FILE>  <PORT>  [opt: PACKET_SIZE]");
        return -1;
    }

    server = FtpServerNew(atoi(argv[2]), argv[1],150);
    if(!server)
    {
        fprintf(stderr, "error\n");
        return -1;
    }

    FtpServerRun(server);

    return 0;
}
